package main

import (
	router "dhuviewer/router"

	"github.com/gin-gonic/gin"
	_ "github.com/lib/pq"
)

func main() {

	// jwt.SignJwt()
	// fmt.Println("test", tokenString)
	// services.TestCreate()
	r := gin.Default()
	//gin.SetMode(gin.ReleaseMode)
	loginGroup := r.Group("/login")
	socailGroup := r.Group("/socail")
	userGroup := r.Group("/user")
	galleryGroup := r.Group("/pic")
	replyGroup := r.Group("/reply")
	subGroup := r.Group("/sub")
	router.Login(loginGroup)
	router.Social(socailGroup)
	router.UserData(userGroup)
	router.Gallery(galleryGroup)
	router.ReplyRouter(replyGroup)
	router.SubRoute(subGroup)
	r.Run() // listen and serve on 0.0.0.0:8080
}
